package com.whiteape.book.presenter;

import com.whiteape.book.contract.DownloadContract;
import com.whiteape.book.core.manager.MediaStorageManager;
import com.whiteape.book.model.dto.DownloadTaskBean;
import com.whiteape.book.ui.base.RxPresenter;

import java.util.List;

public class DownloadPresenter extends RxPresenter<DownloadContract.View> implements DownloadContract.Presenter{
    @Override
    public void refreshDownloadTask() {
        List<DownloadTaskBean> beanList = MediaStorageManager.getInstance().getDownloadTaskAll();
        mView.finishRefresh(beanList);

    }
}
